package nsu.edu.zsq.dao;

import java.util.List;
import nsu.edu.zsq.bean.StuReward;
import nsu.edu.zsq.bean.StuRewardExample;
import org.apache.ibatis.annotations.Param;

public interface StuRewardMapper {
    /**
     *
     */
    long countByExample(StuRewardExample example);

    /**
     *
     */
    int deleteByExample(StuRewardExample example);

    /**
     *
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     */
    int insert(StuReward record);

    /**
     *
     */
    int insertSelective(StuReward record);

    /**
     *
     */
    List<StuReward> selectByExample(StuRewardExample example);

    /**
     *
     */
    StuReward selectByPrimaryKey(Integer id);

    /**
     *
     */
    int updateByExampleSelective(@Param("record") StuReward record, @Param("example") StuRewardExample example);

    /**
     *
     */
    int updateByExample(@Param("record") StuReward record, @Param("example") StuRewardExample example);

    /**
     *
     */
    int updateByPrimaryKeySelective(StuReward record);

    /**
     *
     */
    int updateByPrimaryKey(StuReward record);
    
    /**
     * 根据学号获取该学生奖惩信息列表（左外连接student表，获取学生姓名）
     * @param stuNo 学号
     * @return  List<StuReward>
     */
    List<StuReward> listStuRewardByStuNo(String stuNo);
}